package com.zzxx.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Date2String {
    public static String dateToString(Date now, String pattern){
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.format(now);
    }
}
